﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core.DAL
{
    public class DataAccessLayer : IDisposable
    {
        private DataAccessDataContext dataContext;

        public DataAccessLayer()
        {
            this.dataContext = new DataAccessDataContext();
        }

        public DataAccessDataContext DataContext
        {
            get
            {
                return this.dataContext;
            }
        }

        #region IDisposable Members

        public void Dispose()
        {
            this.dataContext.Dispose();
        }

        #endregion
    }
}
